package com.tarena.lbs.marketing.web.mapper;
import com.tarena.lbs.pojo.marketing.dos.MarketingActivityDO;
import com.tarena.lbs.pojo.marketing.param.UpdateParam;
import com.tarena.lbs.pojo.marketing.query.MarketingActivityQuery;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface MarketingActivityMapper {
    int insert(MarketingActivityDO record);

    int insertSelective(MarketingActivityDO record);

    MarketingActivityDO selectByPrimaryKey(Integer id);

    List<MarketingActivityDO> selectList(MarketingActivityQuery query);

    List<MarketingActivityDO> selectListByStatus();

    int updateByPrimaryKeySelective(MarketingActivityDO record);

    int updateByPrimaryKey(MarketingActivityDO record);

    void batchUpdateActivityStatus(@Param(value = "params") List<UpdateParam> params);

    MarketingActivityDO getActivityByStoreId(Integer storeId);
}